function t(t, e, r) {
    var n = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : "GET";
    return new Promise(function(a, o) {
        wx.request({
            url: "" + t + e,
            data: r,
            method: n,
            header: {
                "content-type": "POST" === n ? "application/x-www-form-urlencoded" : "application/json"
            },
            success: function(t) {
                200 === t.statusCode ? a(t.data) : o(t.data);
            },
            fail: function(t) {
                o(t.data);
            }
        });
    });
}

var e = function(e) {
    return {
        get: function(r, n) {
            return t(e, r, n);
        },
        post: function(r, n) {
            return t(e, r, n, "POST");
        }
    };
}, r = e("https://wxs.app.yiche.com");

e("http://api.app.yiche.com");

module.exports = {
    getCarNews: function(t) {
        return r.get("/cardetails.ashx", t);
    },
    decryptUserInfo: function(t) {
        return r.post("/cardetails.ashx", t);
    },
    getOilwear: function(t) {
        return r.get("/cardetails.ashx", t);
    },
    getVerifyCode: function(t) {
        return r.get("/getdealerorder.ashx", t);
    },
    getEnquireRecord: function(t) {
        return r.get("/getdealerorder.ashx", t);
    },
    postEnquireOrder: function(t) {
        return r.get("/order.ashx", t);
    }
};